package cn.yanghan.utils.exception;

public enum ErrorCode {
    //常量
    CODE_500_SYSTEM_ERROR(500,"系统错误！请联系管理员"),
    CODE_400_PARAM_ERROR(400,"jsr303自己获取信息！"),

    //业务逻辑错误
    CODE_400_TENANT_EXSIT(4000001,"该机构已经入驻！请直接登录！"),
    CODE_400_TENANT_ADMIN_EXSIT(4000002,"该管理员已经有机构了！请登录后添加新的机构！");
    //属性
    private int code;
    private String meesage;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMeesage() {
        return meesage;
    }

    public void setMeesage(String meesage) {
        this.meesage = meesage;
    }

    ErrorCode(int code, String message){
        this.code = code;
        this.meesage = message;
    }
}
